#encoding: utf-8
require 'net/http'
require 'iconv'
require 'date'
class SinaStockRequest

  @@proxy =  Net::HTTP

  class << self
    #当日交易汇总数据
    def get_today_info(stock_code,&block)
      @@proxy.start('hq.sinajs.cn') { |http|
        response = http.get("/list=#{stock_code}")
      }
    end

  end
end